#!/bin/sh

apt-get update

apt-get install -y openssh-server gdb gdbserver

echo "PermitRootLogin yes" >> /etc/ssh/sshd_config && yes root | passwd root

#加一下启动ssh的代码
bash -c "service ssh restart"

#这里就是启动gdbserver了
gdbserver :2223 freeswitch -nonat